<?php

namespace Lowpress\PressExtensionsBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller,
    Sensio\Bundle\FrameworkExtraBundle\Configuration\Route,
    Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter,
    Lowpress\PressExtensionsBundle\Entity\YouTube;

class YouTubeController extends Controller
{
 /**
  * @Route("/:id")
  * @ParamConverter("id", class="LowpressPressExtensionsBundle:YouTube")
  */
  public function previewAction(YouTube $item)
  {
    return $this->render('LowpressPressExtensionsBundle:YouTube:index.html.twig', array("item" => $item));
  }
}
